package com.cxh.rmsq.ui.activity.self

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.lifecycle.ViewModelProvider
import com.blankj.utilcode.util.BarUtils
import com.blankj.utilcode.util.ColorUtils
import com.cxh.rmsq.R
import com.cxh.rmsq.databinding.ActivityInviteListBinding
import com.cxh.rmsq.databinding.ActivityRankListBinding
import com.cxh.rmsq.net.newNet.TreasureViewModel
import com.cxh.rmsq.ui.BaseActivity
import com.cxh.rmsq.ui.adapter.self.InviteListAdapter

/**
 * 排行榜
 */
class RankListActivity : BaseActivity() {
    private lateinit var binding: ActivityRankListBinding
    private var listAdapter: RankListActivity? = null
    private var page = 1
    private val viewModel by lazy {
        ViewModelProvider.NewInstanceFactory().create(TreasureViewModel::class.java)
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityRankListBinding.inflate(layoutInflater)
        setContentView(binding.root)
        binding.clToolbar.setPadding(0, 0, 0, 0)
//        findViewById<ConstraintLayout>(R.id.cl_toolbar).setPadding(0, BarUtils.getStatusBarHeight(), 0, 0)
        BarUtils.setStatusBarColor(this, ColorUtils.getColor(R.color.transparent))
        BarUtils.setStatusBarLightMode(this, true)

        var rank = intent.getStringExtra("rank")
    }
}